package com.erpx.api.prepare;

import com.erpx.api.CommonConstants;
import com.erpx.api.WdtClient;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class PrepareOrderQueryService {
    /**
     * 查询库存成本
     */
    public static void  queryPreparePage(){
        WdtClient client = new WdtClient(CommonConstants.sid, CommonConstants.appkey, CommonConstants.appSecret, CommonConstants.baseUrl);

        Map<String, String> params = new HashMap<String, String>();
        params.put("page_no", "0");
        params.put("page_size", "1");
        params.put("start_time", "2025-02-07 00:00:00");
        params.put("end_time", "2025-03-08 00:00:00");
        //params.put("warehouse_no", "6");
        //params.put("status", "20");
        params.put("purchase_no", "CG2503050001");
        try {
            String response = client.execute("purchase_order_query.php", params);
            System.out.println(response);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}
